This is the documentation for the Realbasic Plugins from Monkeybreadsoftware.de. You find these plugins and the newest version of this document at http://www.monkeybreadsoftware.de/realbasic inside the plugins section.
This help was last updated on Freitag, 6. September 2002 and covers 2136 items: 126 classes, 2 controls and 583 global functions.
The list of the themes | Global methods by category | Global methods by name | The list of the classes | The list of the controls |
class Encrypt | ||||
class, Encrypt | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
This class does a enryption using a 104 Byte Key. Create a Encrypt Object using "e=new encrypt". Then initialize it with your password using "e.init(password)". Now you can call Encode and Decode to get your data encrypted. The GetKey function is only for you to verify if it's working correctly. For the same password, you should allways get the same key and the same result for the same data. Known issues: The data length must be aligned to 8 bytes for best results. e.g. "Hello World!" has a length of 12 bytes and the encode function will only do the first 8 bytes. | ||||
Notes:
The result on Mac and Windows is not the same! | ||||
Decode(data as string) as string | ||||
method, Encrypt | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Decodes the string using the key. | ||||
Example:
msgbox e.Decode("Hello World") | ||||
Notes:
Does nothing without you calling Init before to generate a key. The result is not the same for Windows and MacOS. | ||||
Encode(data as string) as string | ||||
method, Encrypt | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Encodes the string using the key. | ||||
Example:
msgbox e.encode("Hello World") | ||||
Notes:
Does nothing without you calling Init before to generate a key. The result is a binary string which can contain any ASCII value and may not be printable. The result is not the same for Windows and MacOS. | ||||
GetKey as string | ||||
method, Encrypt | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Returns the key used inside the encryption object. | ||||
Example:
msgbox e.getkey | ||||
Notes:
Call Init to generate this key before. | ||||
Init(password as string) | ||||
method, Encrypt | So, 28. Apr 2002 | |||
Mac OS Classic: Works. | Mac OS Carbon: Works. | Windows: Works. | ||
Function:
Generates the key needed for encryption based on the provided keyword. | ||||
Example:
e.init("mypassword") |
Written 2002 by Christian Schmitz. Feel free to ask or report mistakes to realbasic@macsw.de.
Thanks.